Saw a dead friend in distance, called his name and he smiled and walked away
Dreams about seeing dead people often symbolize a part of yourself that has "died" or undergone a transformation. In this dream, your friend may represent a part of yourself that you have lost touch with or have been disconnected from. The fact that you call his name and he smiles and walks away suggests that this part of yourself may be moving on or leaving your life in some way. This could be a sign that you need to acknowledge and accept these changes in order to move forward in your life. Alternatively, it could also mean that you miss your friend and wish to reconnect with them on some level.